﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IBLL;


namespace BLL
{
    public class ManageBLL : IManageBLL
    {
        public bool limitUser(int userId, int limitTime, System.DateTime timeStart, string reason)
        {
            bool validator = false;
            DAL.BlackListDAL blackListDal = (DAL.BlackListDAL)DALFAC.DataAccess.CreateBlackList();
            if (blackListDal != null)
            {
                validator = blackListDal.Add(userId, limitTime, timeStart, reason);
            }
            return validator;
        }

        public bool removeLimit(int blackId)
        {
            bool validator = false;
            DAL.BlackListDAL blackListDal = (DAL.BlackListDAL)DALFAC.DataAccess.CreateBlackList();
            if (blackListDal != null)
            {
                validator = blackListDal.blackIdDelete(blackId);
            }
            return validator;
        }
    }
}
